package com.xiaodimall.beforesys.service;

import com.xiaodimall.beforesys.pojo.ShoppingCartItem;
import com.xiaodimall.utils.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @author wyc
 * @description
 * @ClassName CartService
 * @date 2022/11/26 14:57
 */
public interface CartService {



    //添加商品至购物车中
    String addGoodsCart(ShoppingCartItem shoppingCartItem, HttpSession httpSession);

    //根据id修改商品的购买数量
    String updateCartItem(ShoppingCartItem shoppingCartItem);

    //显示购物车所有的数据
    String getCartMsg(HttpServletRequest request, HttpSession httpSession);

    //根据购物车id删除商品
    Result DelCartGood(Long shoppingCartItemId, HttpSession session);

    //提交页面
    String toSettlePage(HttpServletRequest request, HttpSession httpSession);
}
